/**
 * 将带逗号的金额格式化成浮点型金额
 * @param {*} val  带逗号的金额
 */
export function removeComma(val = '') {
    if (!val) {
        return val;
    }
    // eslint-disable-next-line no-useless-escape
    return (val + '').replace(new RegExp(',', ['g']), '');
}
